package com.qqtech.qquan.community.model;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.TimeUtil;

@SuppressWarnings("serial")
public class CommunityMessageQuery extends CommunityMessage {
	/**
	 * 是否好友
	 */
	private Integer isFriend;

	/**
	 * 用户id
	 */
	private Integer userId;

	/**
	 * 查询搜索
	 */
	private String search;
	
	/**
	 * 社区名称
	 */
	private String communityName;
	/**
	 * 过滤userIds
	 */
	private List<Integer> filterUserIds;

	private List<Integer> userIds;

	/** 查询开始时间 **/
	private java.sql.Timestamp startAt;

	/** 查询结束时间 **/
	private java.sql.Timestamp endAt;

	public String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(String communityName) {
		this.communityName = communityName;
	}

	public java.sql.Timestamp getEndAt() {
		return endAt;
	}

	public List<Integer> getFilterUserIds() {
		return filterUserIds;
	}

	public Integer getIsFriend() {
		return isFriend;
	}
	public String getSearch() {
		return search;
	}

	public java.sql.Timestamp getStartAt() {
		return startAt;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setEndAt(java.sql.Timestamp endAt) {
		this.endAt = endAt;
	}

	public void setEndAtStr(String v) {
		this.setEndAt(TimeUtil.getTimeByDatetimeLocal(v));
	}

	public void setFilterUserIds(List<Integer> filterUserIds) {
		this.filterUserIds = filterUserIds;
	}

	public void setIsFriend(Integer isFriend) {
		this.isFriend = isFriend;
	}
	public void setSearch(String search) {
		this.search = search;
	}

	public void setStartAt(java.sql.Timestamp startAt) {
		this.startAt = startAt;
	}

	public void setStartAtStr(String v) {
		this.setStartAt(TimeUtil.getTimeByDatetimeLocal(v));
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public List<Integer> getUserIds() {
		return userIds;
	}

	public void setUserIds(List<Integer> userIds) {
		this.userIds = userIds;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}

}